{extend name='admin@public/content'}

{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-open='{:url("$classuri/index")}' data-title="返回列表" class='layui-btn layui-btn-sm layui-btn-primary'>返回列表</button>
<!--{/if}-->

<!--{if auth("$classuri/editItem")}-->
<button data-modal='{:url("$classuri/editItem")}?set_id={$set.id}' data-title="编辑体检项目" class='layui-btn layui-btn-sm layui-btn-primary'>编辑体检项目</button>
<!--{/if}-->
{/block}

{block name="content"}

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table notevent" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td'>
                <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='list-table-sort-td w60'>ID({$list|count})</th>
            <th class='list-table-sort-td'>
                <button type="submit" class="layui-btn layui-btn-normal layui-btn-xs">排 序</button>
            </th>
            <th class="w300">体检机构</th>
            <th class="w200">项目分类</th>
            <th>体检项目</th>
            <th class="w120">单项价格</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
            </td>
            <td class='list-table-sort-td'>{$vo.id}</td>
            <td class='list-table-sort-td'>
                <input name="_{$vo.id}" value="{$vo.sort}" class="list-sort-input"/>
            </td>
            <td>{$vo.mec}</td>
            <td>{$vo.item_set}</td>
            <td>{$vo.name}</td>
            <td>{$vo.price}</td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
<script>
    (function () {
        window.form.render();
        window.laydate.render({range: true, elem: '#create_at'});
    })();
</script>
{/block}